from .relys import BitSet
from .relys import Chip

class OR(Chip):
    def __init__(self, width):
        super().__init__(width+1, [0,width],[width])

@OR.keyframe(-1)
def _frame(chip):
    if chip.pinIN() : chip.pinOUT(1)
    else : chip.pinOUT(0)